package com.ssy.lingxi.after.sale.api.model.vo.request;

import com.ssy.lingxi.common.model.dto.UserLoginCacheDTO;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * 新增退货物流VO
 */
public class AddLogisticsVO implements Serializable {
    private static final long serialVersionUID = -603413771074967013L;

    /**
     * 售后id
     */
    @NotNull(message = "售后Id要大于0")
    @Positive(message = "售后Id要大于0")
    private Long dataId;

    /**
     * 物流id
     */
    @NotNull(message = "物流Id要大于0")
    @Positive(message = "物流Id要大于0")
    private Long logisticsId;

    /**
     * 物流单号
     */
    @NotBlank(message = "物流单号不能为空")
    private String logisticsOrderNo;

    /**
     * 物流公司
     */
    @NotBlank(message = "物流公司不能为空")
    private String logisticsName;

    /**
     * 操作会员
     */
    @NotNull(message = "操作会员不能为空")
    @Valid
    private UserLoginCacheDTO member;

    public UserLoginCacheDTO getMember() {
        return member;
    }

    public void setMember(UserLoginCacheDTO member) {
        this.member = member;
    }

    public Long getLogisticsId() {
        return logisticsId;
    }

    public void setLogisticsId(Long logisticsId) {
        this.logisticsId = logisticsId;
    }

    public Long getDataId() {
        return dataId;
    }

    public void setDataId(Long dataId) {
        this.dataId = dataId;
    }

    public String getLogisticsOrderNo() {
        return logisticsOrderNo;
    }

    public void setLogisticsOrderNo(String logisticsOrderNo) {
        this.logisticsOrderNo = logisticsOrderNo;
    }

    public String getLogisticsName() {
        return logisticsName;
    }

    public void setLogisticsName(String logisticsName) {
        this.logisticsName = logisticsName;
    }
}
